<?php 
session_cache_expire(999999999);
if(!isset($_SESSION)) 
{ 
	session_start(); 
}
include '../operations/connection.php';	

$employeeisCheck=$_REQUEST['employeeisCheck'];
$idisCheck=$_REQUEST['idisCheck'];
$countisCheck=$_REQUEST['countisCheck'];
$noteisCheck=$_REQUEST['noteisCheck'];

mysql_query("UPDATE assets SET count=count+".$countisCheck." WHERE (id='".$idisCheck."')");

mysql_query("INSERT INTO borrow_assets (id_assets, count, total, idemployee, datetime,note,creater) 
VALUES ('".$idisCheck."', '".$countisCheck."', '".$countisCheck."', '".$employeeisCheck."',NOW(), '".$noteisCheck."', '".$_SESSION['IDEmployee']."')");

mysql_close($connection);
?>